package com.hwadee.caixiang.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hwadee.caixiang.entity.Order;
import com.hwadee.caixiang.entity.OrderItem;

public interface OrderMapper {
   
	Integer save(Order order);
   
	Integer saveOrderItem(OrderItem orderItem);
	
	Order findOrderByoid(@Param("oids")Integer oids);
	
	List<OrderItem> findOrderItemByOid(@Param("oids")Integer oids);

	void updateOrder(Order currOrder);

	List<Order> findOrderByUserId(@Param("userId")Integer userId);

}
